#ifndef _SERVERSOCKET_H
#define _SERVERSOCKET_H
#include <sys/types.h>
//! 下面是根据操作系统自动加载所需的库和头文件
#ifdef   WIN32
          #include   <winsock2.h>
          #pragma   comment(lib,"ws2_32.lib")
#else
          #include   <sys/socket.h>
#endif

#include <string>
#include <iostream>
int WSAStartup
(
    WORD wVersionRequested,
    LPWSADATA lpWSAData
);

using namespace std;
class CClient
{
    int                 m_sockfd;
    struct sockaddr_in  m_addr;
public:
    CClient(const string& strAddr, int iPort);
    ~CClient();
    BOOL Connect();
    BOOL Send(const string& strSend);
};
#endif
